import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../../../../../../../utils/util.dart';
import '../index.dart';

/// hello
class NeedText extends GetView<CreateQuesController> {
  const NeedText({
    Key? key,
    required this.text,
  }) : super(key: key);
  final String text;
  @override
  Widget build(BuildContext context) {
    return Text.rich(
      TextSpan(
          text: '*',
          style: TextStyle(color: ColorsUtil.red, fontSize: 16.sp),
          children: [
            TextSpan(
              text: text,
              style: TextStyle(color: ColorsUtil.title, fontSize: 16.sp),
            ),
          ]),
    );
  }
}
